export interface CreateOrUpdateCourseRequestData {
  id?: string
  desc: string
  name: string
  typeId?: string
  image: string
  typeName: string
}

export interface GetCourseRequestData {
  /** 当前页码 */
  pageNum: number
  /** 查询条数 */
  pageSize: number
  /** 查询参数：用户名 */
  name?: string
  /** 查询参数：手机号 */
  phone?: string
}

export interface GetCourseData {
  id: string
  desc: string
  name: string
  typeId?: string
  image: string
  typeName: string
}

export type GetCourseResponseData = ApiResponseData<{
  rows: GetCourseData[]
  total: number
}>

export interface GetTypeData {
  id: string
  name: string
}

export type GetTypeResponseData = ApiResponseData<GetTypeData[]>

export type GetCourseListResponseData = ApiResponseData<GetCourseData[]>
